package assignment;
import java.util.Scanner;

public class Palindrome 
{
	public static void main(String[] args) 
	{
		Scanner n1=new Scanner (System.in);
		System.out.println("Enter the numbers");
		int array[]=new int[5];
		for(int i=0;i<array.length;i++)
		{
			array[i]=n1.nextInt();
		}
		boolean isPalindrome=true;
		
		int i=0;
		int j=0;
		
		while(i<array.length)
		{
			j=(array.length -1)-i;
			
			if(array[i]!=array[j])
			{
				isPalindrome=false;
				break;
			}
			else
			{
				i++;
			}
	    }
			
		if(isPalindrome)
		{
			System.out.println("palindrome");
		}
		else
		{
			System.out.println("not palindrome");
		}
			
		}
}


